﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true" CodeBehind="CustomerSearchPopup.aspx.cs" Inherits="NetDon.OA.Portal.Components.CustomerSearchPopup" %>
<%@ Register Src="../Controls/GridPager.ascx" TagName="GridPager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                <tr>
                    <td>
                        <NetDon:FormPanel ID="PanelCustomerInfo" runat="server" CaptionAlign="NotSet" RepeatColumns="2">
                            <Items>
                                <NetDon:FormItem HeaderText="客户编号">
                                    <ContentTemplate>
                                        <asp:TextBox ID="txtCustomCode" runat="server"></asp:TextBox>
                                    </ContentTemplate>
                                </NetDon:FormItem>
                                <NetDon:FormItem HeaderText="客户名称">
                                    <ContentTemplate>
                                        <asp:TextBox ID="txtCustomName" runat="server" MaxLength="50"></asp:TextBox>
                                    </ContentTemplate>
                                </NetDon:FormItem>
                                <NetDon:FormItem HeaderText="联系人">
                                    <ContentTemplate>
                                        <asp:TextBox ID="txtContactName" runat="server"></asp:TextBox>
                                    </ContentTemplate>
                                </NetDon:FormItem>
                            </Items>
                        </NetDon:FormPanel>
                    </td>
                    <td valign="bottom">
                        <asp:Button runat="server" ID="btnSearch" Text="查询" OnClick="btnSearch_Click" />
                        
                    </td>
                </tr>
            </table>
            <div style="margin-top: 10px">
                <NetDon:GridView ID="gridCustomers" runat="server" AutoGenerateColumns="False"
                    AllowSorting="true" onrowdatabound="gridCustomers_RowDataBound">
                    <Columns>
                     <NetDon:TemplateField >
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                      <asp:RadioButton runat="server" ID="radioSelected" GroupName="templateGroup" 
                                        OnCheckedChanged="radioSelected_CheckedChanged" AutoPostBack="true" />
                                    </ItemTemplate>
                                </NetDon:TemplateField>
                        <NetDon:BoundField HeaderText="客户编号" DataField="CustomerCode" SortExpression="CustomerCode">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="客户名称" DataField="CustomerName" SortExpression="CustomerName">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="联系人" DataField="ContactName" SortExpression="ContactName">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="电话" DataField="Phone" SortExpression="Phone">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="手机" DataField="Mobile" SortExpression="Mobile">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="电子邮箱" DataField="Email" SortExpression="Email">
                        </NetDon:BoundField>
                        
                    </Columns>
                </NetDon:GridView>
                  <uc1:GridPager ID="PagerCustomers" runat="server" TargetControlID="gridCustomers" PageSize="20"
                            OnPerformGetCondition="PagerCustomers_PerformGetCondition" OnPerformGetRecordCount="PagerCustomers_PerformGetRecordCount"
                            OnPerformGetPageData="PagerCustomers_PerformGetPageData" />
                </div>
                 <div style="margin: 10px; text-align: center">
            <asp:Button ID="btnChoose" runat="server" Text="选择" OnClick="btnChoose_Click" Style="margin-right: 5px">
            </asp:Button>
            <asp:Button ID="btnCancel" runat="server" Text="取消" CausesValidation="false" SkinID="Button60"
                Style="margin-left: 5px"></asp:Button>
        </div>
</asp:Content>
